import { useState } from "react";
import { ImageUploader } from "antd-mobile";

import { demoSrc, mockUpload } from "../utils/up";

function Upload() {
  const [fileList, setFileList] = useState([
    {
      url: demoSrc,
    },
  ]);

  return (
    <ImageUploader
      value={fileList}
      onChange={setFileList}
      upload={mockUpload}
    />
  );
}

export default Upload;
